<?php
/**
 * This controller is uses to select university
 *
 * @author	huytbt
 * @date	2012-05-14
 * @version	1.0
 */
class SelectUniversityController extends HController
{
	/**
	 * This action is uses to display list university for select
	 */
	public function actionIndex()
	{
		// Get list universities
		Yii::import('application.modules.textbooks.models.TextbookUniversity');
		$criteria = new CDbCriteria;
		$criteria->order = 'name ASC';
		$universities = TextbookUniversity::model()->findAll($criteria);
		
		$this->render('index', array(
			'universities' => $universities,
		));
	}
}
